-
Notifications
You must be signed in to change notification settings - Fork 16.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
community: fixed bug in GraphVectorStoreRetriever #27846
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
7723002
to
4dd0b14
Compare
4dd0b14
to
81a0b2a
Compare
@@ -837,8 +838,8 @@ class GraphVectorStoreRetriever(VectorStoreRetriever): | |||
retriever = graph_vectorstore.as_retriever(search_kwargs={"score_threshold": 0.5}) | |||
""" # noqa: E501 | |||
|
|||
vector_store: GraphVectorStore | |||
"""GraphVectorStore to use for retrieval.""" | |||
vectorstore: VectorStore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changing this from vectorstore
to vector_store
created the bug.
@property | ||
def graph_vectorstore(self) -> GraphVectorStore: | ||
return cast(GraphVectorStore, self.vectorstore) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to add this cast property to get the 3.13 lint to pass. If there is a better way to do this, please let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jfyi the community integration tests don't run in CI ever, so might be more effective to add this to the astradb ci instead
Description: This fixes an issue that mistakenly created in langchain-ai#27253. The issue currently exists only in `langchain-community==0.3.4`. Test cases were added to prevent this issue in the future. Co-authored-by: Erick Friis <[email protected]>
Description: This fixes an issue that mistakenly created in langchain-ai#27253. The issue currently exists only in `langchain-community==0.3.4`. Test cases were added to prevent this issue in the future. Co-authored-by: Erick Friis <[email protected]>
Description:
This fixes an issue that mistakenly created in #27253. The issue currently exists only in
langchain-community==0.3.4
.Test cases were added to prevent this issue in the future.